package cn.tedu.day01.jnsdlfaq.user.service;

import cn.tedu.day01.jnsdlfaq.user.pojo.SysUser;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

public interface SysUserService {

    List<SysUser> selectAll();

    IPage<SysUser> selectUserAll(Page page);

    int addUser(SysUser user);

    int updateUser(SysUser user);

    int deleteUser(Integer id);

    SysUser selectById(Integer id);

    SysUser selectByName(String loginName);

    SysUser userLogin(String username, String password);


}
